
chain-queue:     file format elf64-littleaarch64


Disassembly of section .init:

00000000004004b8 <_init>:
  4004b8:	a9bf7bfd 	stp	x29, x30, [sp, #-16]!
  4004bc:	910003fd 	mov	x29, sp
  4004c0:	9400003e 	bl	4005b8 <call_weak_fn>
  4004c4:	a8c17bfd 	ldp	x29, x30, [sp], #16
  4004c8:	d65f03c0 	ret

Disassembly of section .plt:

00000000004004d0 <.plt>:
  4004d0:	a9bf7bf0 	stp	x16, x30, [sp, #-16]!
  4004d4:	90000090 	adrp	x16, 410000 <__FRAME_END__+0xf3e8>
  4004d8:	f947fe11 	ldr	x17, [x16, #4088]
  4004dc:	913fe210 	add	x16, x16, #0xff8
  4004e0:	d61f0220 	br	x17
  4004e4:	d503201f 	nop
  4004e8:	d503201f 	nop
  4004ec:	d503201f 	nop

00000000004004f0 <exit@plt>:
  4004f0:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  4004f4:	f9400211 	ldr	x17, [x16]
  4004f8:	91000210 	add	x16, x16, #0x0
  4004fc:	d61f0220 	br	x17

0000000000400500 <malloc@plt>:
  400500:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  400504:	f9400611 	ldr	x17, [x16, #8]
  400508:	91002210 	add	x16, x16, #0x8
  40050c:	d61f0220 	br	x17

0000000000400510 <__libc_start_main@plt>:
  400510:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  400514:	f9400a11 	ldr	x17, [x16, #16]
  400518:	91004210 	add	x16, x16, #0x10
  40051c:	d61f0220 	br	x17

0000000000400520 <__gmon_start__@plt>:
  400520:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  400524:	f9400e11 	ldr	x17, [x16, #24]
  400528:	91006210 	add	x16, x16, #0x18
  40052c:	d61f0220 	br	x17

0000000000400530 <abort@plt>:
  400530:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  400534:	f9401211 	ldr	x17, [x16, #32]
  400538:	91008210 	add	x16, x16, #0x20
  40053c:	d61f0220 	br	x17

0000000000400540 <puts@plt>:
  400540:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  400544:	f9401611 	ldr	x17, [x16, #40]
  400548:	9100a210 	add	x16, x16, #0x28
  40054c:	d61f0220 	br	x17

0000000000400550 <free@plt>:
  400550:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  400554:	f9401a11 	ldr	x17, [x16, #48]
  400558:	9100c210 	add	x16, x16, #0x30
  40055c:	d61f0220 	br	x17

0000000000400560 <printf@plt>:
  400560:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  400564:	f9401e11 	ldr	x17, [x16, #56]
  400568:	9100e210 	add	x16, x16, #0x38
  40056c:	d61f0220 	br	x17

Disassembly of section .text:

0000000000400570 <_start>:
  400570:	d280001d 	mov	x29, #0x0                   	// #0
  400574:	d280001e 	mov	x30, #0x0                   	// #0
  400578:	aa0003e5 	mov	x5, x0
  40057c:	f94003e1 	ldr	x1, [sp]
  400580:	910023e2 	add	x2, sp, #0x8
  400584:	910003e6 	mov	x6, sp
  400588:	580000c0 	ldr	x0, 4005a0 <_start+0x30>
  40058c:	580000e3 	ldr	x3, 4005a8 <_start+0x38>
  400590:	58000104 	ldr	x4, 4005b0 <_start+0x40>
  400594:	97ffffdf 	bl	400510 <__libc_start_main@plt>
  400598:	97ffffe6 	bl	400530 <abort@plt>
  40059c:	00000000 	.inst	0x00000000 ; undefined
  4005a0:	00400a24 	.word	0x00400a24
  4005a4:	00000000 	.word	0x00000000
  4005a8:	00400b18 	.word	0x00400b18
  4005ac:	00000000 	.word	0x00000000
  4005b0:	00400b90 	.word	0x00400b90
  4005b4:	00000000 	.word	0x00000000

00000000004005b8 <call_weak_fn>:
  4005b8:	90000080 	adrp	x0, 410000 <__FRAME_END__+0xf3e8>
  4005bc:	f947f000 	ldr	x0, [x0, #4064]
  4005c0:	b4000040 	cbz	x0, 4005c8 <call_weak_fn+0x10>
  4005c4:	17ffffd7 	b	400520 <__gmon_start__@plt>
  4005c8:	d65f03c0 	ret
  4005cc:	00000000 	.inst	0x00000000 ; undefined

00000000004005d0 <deregister_tm_clones>:
  4005d0:	b0000081 	adrp	x1, 411000 <exit@GLIBC_2.17>
  4005d4:	b0000080 	adrp	x0, 411000 <exit@GLIBC_2.17>
  4005d8:	91014021 	add	x1, x1, #0x50
  4005dc:	91014000 	add	x0, x0, #0x50
  4005e0:	91001c21 	add	x1, x1, #0x7
  4005e4:	cb000021 	sub	x1, x1, x0
  4005e8:	f100383f 	cmp	x1, #0xe
  4005ec:	540000a9 	b.ls	400600 <deregister_tm_clones+0x30>  // b.plast
  4005f0:	580000c1 	ldr	x1, 400608 <deregister_tm_clones+0x38>
  4005f4:	b4000061 	cbz	x1, 400600 <deregister_tm_clones+0x30>
  4005f8:	d61f0020 	br	x1
  4005fc:	d503201f 	nop
  400600:	d65f03c0 	ret
  400604:	d503201f 	nop
	...

0000000000400610 <register_tm_clones>:
  400610:	b0000081 	adrp	x1, 411000 <exit@GLIBC_2.17>
  400614:	b0000080 	adrp	x0, 411000 <exit@GLIBC_2.17>
  400618:	91014021 	add	x1, x1, #0x50
  40061c:	91014000 	add	x0, x0, #0x50
  400620:	cb000021 	sub	x1, x1, x0
  400624:	9343fc21 	asr	x1, x1, #3
  400628:	8b41fc21 	add	x1, x1, x1, lsr #63
  40062c:	9341fc21 	asr	x1, x1, #1
  400630:	b4000081 	cbz	x1, 400640 <register_tm_clones+0x30>
  400634:	580000a2 	ldr	x2, 400648 <register_tm_clones+0x38>
  400638:	b4000042 	cbz	x2, 400640 <register_tm_clones+0x30>
  40063c:	d61f0040 	br	x2
  400640:	d65f03c0 	ret
  400644:	d503201f 	nop
	...

0000000000400650 <__do_global_dtors_aux>:
  400650:	a9be7bfd 	stp	x29, x30, [sp, #-32]!
  400654:	910003fd 	mov	x29, sp
  400658:	f9000bf3 	str	x19, [sp, #16]
  40065c:	b0000093 	adrp	x19, 411000 <exit@GLIBC_2.17>
  400660:	39414260 	ldrb	w0, [x19, #80]
  400664:	35000080 	cbnz	w0, 400674 <__do_global_dtors_aux+0x24>
  400668:	97ffffda 	bl	4005d0 <deregister_tm_clones>
  40066c:	52800020 	mov	w0, #0x1                   	// #1
  400670:	39014260 	strb	w0, [x19, #80]
  400674:	f9400bf3 	ldr	x19, [sp, #16]
  400678:	a8c27bfd 	ldp	x29, x30, [sp], #32
  40067c:	d65f03c0 	ret

0000000000400680 <frame_dummy>:
  400680:	90000080 	adrp	x0, 410000 <__FRAME_END__+0xf3e8>
  400684:	91380000 	add	x0, x0, #0xe00
  400688:	f9400001 	ldr	x1, [x0]
  40068c:	b5000061 	cbnz	x1, 400698 <frame_dummy+0x18>
  400690:	17ffffe0 	b	400610 <register_tm_clones>
  400694:	d503201f 	nop
  400698:	58000101 	ldr	x1, 4006b8 <frame_dummy+0x38>
  40069c:	b4ffffa1 	cbz	x1, 400690 <frame_dummy+0x10>
  4006a0:	a9bf7bfd 	stp	x29, x30, [sp, #-16]!
  4006a4:	910003fd 	mov	x29, sp
  4006a8:	d63f0020 	blr	x1
  4006ac:	a8c17bfd 	ldp	x29, x30, [sp], #16
  4006b0:	17ffffd8 	b	400610 <register_tm_clones>
  4006b4:	d503201f 	nop
	...

00000000004006c0 <init>:
  struct  node * front;
  struct  node * rear;
};

void init(struct queue * queue)
{
  4006c0:	d10043ff 	sub	sp, sp, #0x10
  4006c4:	f90007e0 	str	x0, [sp, #8]
  queue->front = queue->rear = NULL;
  4006c8:	f94007e0 	ldr	x0, [sp, #8]
  4006cc:	f900041f 	str	xzr, [x0, #8]
  4006d0:	f94007e0 	ldr	x0, [sp, #8]
  4006d4:	f9400401 	ldr	x1, [x0, #8]
  4006d8:	f94007e0 	ldr	x0, [sp, #8]
  4006dc:	f9000001 	str	x1, [x0]
}
  4006e0:	d503201f 	nop
  4006e4:	910043ff 	add	sp, sp, #0x10
  4006e8:	d65f03c0 	ret

00000000004006ec <enqueue>:

void enqueue(struct queue * queue, int value)
{
  4006ec:	a9bd7bfd 	stp	x29, x30, [sp, #-48]!
  4006f0:	910003fd 	mov	x29, sp
  4006f4:	f9000fa0 	str	x0, [x29, #24]
  4006f8:	b90017a1 	str	w1, [x29, #20]
  struct node * des;

  des = (struct node *) malloc (sizeof(struct node));
  4006fc:	d2800200 	mov	x0, #0x10                  	// #16
  400700:	97ffff80 	bl	400500 <malloc@plt>
  400704:	f90017a0 	str	x0, [x29, #40]
  if (!des) {
  400708:	f94017a0 	ldr	x0, [x29, #40]
  40070c:	f100001f 	cmp	x0, #0x0
  400710:	540000c1 	b.ne	400728 <enqueue+0x3c>  // b.any
    printf("enqueue malloc fail.\n");
  400714:	90000000 	adrp	x0, 400000 <_init-0x4b8>
  400718:	912ec000 	add	x0, x0, #0xbb0
  40071c:	97ffff89 	bl	400540 <puts@plt>
    exit(-1);
  400720:	12800000 	mov	w0, #0xffffffff            	// #-1
  400724:	97ffff73 	bl	4004f0 <exit@plt>
  }

  des->data = value;
  400728:	f94017a0 	ldr	x0, [x29, #40]
  40072c:	b94017a1 	ldr	w1, [x29, #20]
  400730:	b9000001 	str	w1, [x0]
  des->next = NULL; // 队列只能从队尾插入所以下一个结点初始化为NULL
  400734:	f94017a0 	ldr	x0, [x29, #40]
  400738:	f900041f 	str	xzr, [x0, #8]

  if (queue->rear == NULL)
  40073c:	f9400fa0 	ldr	x0, [x29, #24]
  400740:	f9400400 	ldr	x0, [x0, #8]
  400744:	f100001f 	cmp	x0, #0x0
  400748:	54000121 	b.ne	40076c <enqueue+0x80>  // b.any
    queue->front = queue->rear = des;
  40074c:	f9400fa0 	ldr	x0, [x29, #24]
  400750:	f94017a1 	ldr	x1, [x29, #40]
  400754:	f9000401 	str	x1, [x0, #8]
  400758:	f9400fa0 	ldr	x0, [x29, #24]
  40075c:	f9400401 	ldr	x1, [x0, #8]
  400760:	f9400fa0 	ldr	x0, [x29, #24]
  400764:	f9000001 	str	x1, [x0]
    queue->rear = queue->rear->next = des; */
  else {
    queue->rear->next = des;// 将队尾结点的指针指向新结点,如果新结点为第一个结点则q->rear->next相当于q->front->next 
    queue->rear = des;// 将指向队尾的指针指向新结点 
  }
}
  400768:	14000008 	b	400788 <enqueue+0x9c>
    queue->rear->next = des;// 将队尾结点的指针指向新结点,如果新结点为第一个结点则q->rear->next相当于q->front->next 
  40076c:	f9400fa0 	ldr	x0, [x29, #24]
  400770:	f9400400 	ldr	x0, [x0, #8]
  400774:	f94017a1 	ldr	x1, [x29, #40]
  400778:	f9000401 	str	x1, [x0, #8]
    queue->rear = des;// 将指向队尾的指针指向新结点 
  40077c:	f9400fa0 	ldr	x0, [x29, #24]
  400780:	f94017a1 	ldr	x1, [x29, #40]
  400784:	f9000401 	str	x1, [x0, #8]
}
  400788:	d503201f 	nop
  40078c:	a8c37bfd 	ldp	x29, x30, [sp], #48
  400790:	d65f03c0 	ret

0000000000400794 <dequeue>:

void dequeue(struct queue * queue)
{
  400794:	a9bd7bfd 	stp	x29, x30, [sp, #-48]!
  400798:	910003fd 	mov	x29, sp
  40079c:	f9000fa0 	str	x0, [x29, #24]
  struct node * des;
  int temp;

  if (queue->front == NULL) {
  4007a0:	f9400fa0 	ldr	x0, [x29, #24]
  4007a4:	f9400000 	ldr	x0, [x0]
  4007a8:	f100001f 	cmp	x0, #0x0
  4007ac:	540000c1 	b.ne	4007c4 <dequeue+0x30>  // b.any
    printf("queue is empty, diable dequeue.\n");
  4007b0:	90000000 	adrp	x0, 400000 <_init-0x4b8>
  4007b4:	912f2000 	add	x0, x0, #0xbc8
  4007b8:	97ffff62 	bl	400540 <puts@plt>
    exit(-1);
  4007bc:	12800000 	mov	w0, #0xffffffff            	// #-1
  4007c0:	97ffff4c 	bl	4004f0 <exit@plt>
  }

  des = queue->front;
  4007c4:	f9400fa0 	ldr	x0, [x29, #24]
  4007c8:	f9400000 	ldr	x0, [x0]
  4007cc:	f90017a0 	str	x0, [x29, #40]
  //queue->front = des->next;
  queue->front = queue->front->next;
  4007d0:	f9400fa0 	ldr	x0, [x29, #24]
  4007d4:	f9400000 	ldr	x0, [x0]
  4007d8:	f9400401 	ldr	x1, [x0, #8]
  4007dc:	f9400fa0 	ldr	x0, [x29, #24]
  4007e0:	f9000001 	str	x1, [x0]
  if (queue->front == NULL)
  4007e4:	f9400fa0 	ldr	x0, [x29, #24]
  4007e8:	f9400000 	ldr	x0, [x0]
  4007ec:	f100001f 	cmp	x0, #0x0
  4007f0:	54000061 	b.ne	4007fc <dequeue+0x68>  // b.any
    queue->rear = NULL;
  4007f4:	f9400fa0 	ldr	x0, [x29, #24]
  4007f8:	f900041f 	str	xzr, [x0, #8]
  free(des);
  4007fc:	f94017a0 	ldr	x0, [x29, #40]
  400800:	97ffff54 	bl	400550 <free@plt>
}
  400804:	d503201f 	nop
  400808:	a8c37bfd 	ldp	x29, x30, [sp], #48
  40080c:	d65f03c0 	ret

0000000000400810 <peekqueue>:

int peekqueue(struct queue * queue)
{
  400810:	a9be7bfd 	stp	x29, x30, [sp, #-32]!
  400814:	910003fd 	mov	x29, sp
  400818:	f9000fa0 	str	x0, [x29, #24]
  if (queue->front == NULL) {
  40081c:	f9400fa0 	ldr	x0, [x29, #24]
  400820:	f9400000 	ldr	x0, [x0]
  400824:	f100001f 	cmp	x0, #0x0
  400828:	540000c1 	b.ne	400840 <peekqueue+0x30>  // b.any
    printf("queue is empty.\n");
  40082c:	90000000 	adrp	x0, 400000 <_init-0x4b8>
  400830:	912fa000 	add	x0, x0, #0xbe8
  400834:	97ffff43 	bl	400540 <puts@plt>
    return 0;
  400838:	52800000 	mov	w0, #0x0                   	// #0
  40083c:	14000004 	b	40084c <peekqueue+0x3c>
  }

  return queue->front->data;
  400840:	f9400fa0 	ldr	x0, [x29, #24]
  400844:	f9400000 	ldr	x0, [x0]
  400848:	b9400000 	ldr	w0, [x0]
}
  40084c:	a8c27bfd 	ldp	x29, x30, [sp], #32
  400850:	d65f03c0 	ret

0000000000400854 <empty>:

int empty(struct queue * queue)
{
  400854:	d10043ff 	sub	sp, sp, #0x10
  400858:	f90007e0 	str	x0, [sp, #8]
  if (queue->front == NULL)
  40085c:	f94007e0 	ldr	x0, [sp, #8]
  400860:	f9400000 	ldr	x0, [x0]
  400864:	f100001f 	cmp	x0, #0x0
  400868:	54000061 	b.ne	400874 <empty+0x20>  // b.any
    return 1;
  40086c:	52800020 	mov	w0, #0x1                   	// #1
  400870:	14000002 	b	400878 <empty+0x24>
  else
    return 0;
  400874:	52800000 	mov	w0, #0x0                   	// #0
}
  400878:	910043ff 	add	sp, sp, #0x10
  40087c:	d65f03c0 	ret

0000000000400880 <get>:

int get(struct queue * src)
{
  400880:	a9be7bfd 	stp	x29, x30, [sp, #-32]!
  400884:	910003fd 	mov	x29, sp
  400888:	f9000fa0 	str	x0, [x29, #24]
  if (empty(src)) {
  40088c:	f9400fa0 	ldr	x0, [x29, #24]
  400890:	97fffff1 	bl	400854 <empty>
  400894:	7100001f 	cmp	w0, #0x0
  400898:	540000c0 	b.eq	4008b0 <get+0x30>  // b.none
    printf("queue is empty.\n");
  40089c:	90000000 	adrp	x0, 400000 <_init-0x4b8>
  4008a0:	912fa000 	add	x0, x0, #0xbe8
  4008a4:	97ffff27 	bl	400540 <puts@plt>
    return 0;
  4008a8:	52800000 	mov	w0, #0x0                   	// #0
  4008ac:	14000004 	b	4008bc <get+0x3c>
  }
  
  return src->front->data;
  4008b0:	f9400fa0 	ldr	x0, [x29, #24]
  4008b4:	f9400000 	ldr	x0, [x0]
  4008b8:	b9400000 	ldr	w0, [x0]
}
  4008bc:	a8c27bfd 	ldp	x29, x30, [sp], #32
  4008c0:	d65f03c0 	ret

00000000004008c4 <clear>:

void clear(struct queue * queue)
{
  4008c4:	a9bd7bfd 	stp	x29, x30, [sp, #-48]!
  4008c8:	910003fd 	mov	x29, sp
  4008cc:	f9000fa0 	str	x0, [x29, #24]
  struct node * des;

  des = queue->front;
  4008d0:	f9400fa0 	ldr	x0, [x29, #24]
  4008d4:	f9400000 	ldr	x0, [x0]
  4008d8:	f90017a0 	str	x0, [x29, #40]
  while (des != NULL) {
  4008dc:	1400000b 	b	400908 <clear+0x44>
    queue->front = queue->front->next;
  4008e0:	f9400fa0 	ldr	x0, [x29, #24]
  4008e4:	f9400000 	ldr	x0, [x0]
  4008e8:	f9400401 	ldr	x1, [x0, #8]
  4008ec:	f9400fa0 	ldr	x0, [x29, #24]
  4008f0:	f9000001 	str	x1, [x0]
    free(des);
  4008f4:	f94017a0 	ldr	x0, [x29, #40]
  4008f8:	97ffff16 	bl	400550 <free@plt>
    des = queue->front;
  4008fc:	f9400fa0 	ldr	x0, [x29, #24]
  400900:	f9400000 	ldr	x0, [x0]
  400904:	f90017a0 	str	x0, [x29, #40]
  while (des != NULL) {
  400908:	f94017a0 	ldr	x0, [x29, #40]
  40090c:	f100001f 	cmp	x0, #0x0
  400910:	54fffe81 	b.ne	4008e0 <clear+0x1c>  // b.any
  }

  queue->rear = NULL;
  400914:	f9400fa0 	ldr	x0, [x29, #24]
  400918:	f900041f 	str	xzr, [x0, #8]
}
  40091c:	d503201f 	nop
  400920:	a8c37bfd 	ldp	x29, x30, [sp], #48
  400924:	d65f03c0 	ret

0000000000400928 <length>:

int length(struct queue * src)
{
  400928:	d10083ff 	sub	sp, sp, #0x20
  40092c:	f90007e0 	str	x0, [sp, #8]
  struct node * des;
  int len;

  des = src->front;
  400930:	f94007e0 	ldr	x0, [sp, #8]
  400934:	f9400000 	ldr	x0, [x0]
  400938:	f9000fe0 	str	x0, [sp, #24]
  len = 1;
  40093c:	52800020 	mov	w0, #0x1                   	// #1
  400940:	b90017e0 	str	w0, [sp, #20]
  while (des != src->rear) {
  400944:	14000007 	b	400960 <length+0x38>
    len++;
  400948:	b94017e0 	ldr	w0, [sp, #20]
  40094c:	11000400 	add	w0, w0, #0x1
  400950:	b90017e0 	str	w0, [sp, #20]
    des = des->next;
  400954:	f9400fe0 	ldr	x0, [sp, #24]
  400958:	f9400400 	ldr	x0, [x0, #8]
  40095c:	f9000fe0 	str	x0, [sp, #24]
  while (des != src->rear) {
  400960:	f94007e0 	ldr	x0, [sp, #8]
  400964:	f9400401 	ldr	x1, [x0, #8]
  400968:	f9400fe0 	ldr	x0, [sp, #24]
  40096c:	eb00003f 	cmp	x1, x0
  400970:	54fffec1 	b.ne	400948 <length+0x20>  // b.any
  }

  return len;
  400974:	b94017e0 	ldr	w0, [sp, #20]
}
  400978:	910083ff 	add	sp, sp, #0x20
  40097c:	d65f03c0 	ret

0000000000400980 <display>:

void display(struct queue * src)
{
  400980:	a9bd7bfd 	stp	x29, x30, [sp, #-48]!
  400984:	910003fd 	mov	x29, sp
  400988:	f9000fa0 	str	x0, [x29, #24]
  struct node * des;

  if (src->front == src->rear)
  40098c:	f9400fa0 	ldr	x0, [x29, #24]
  400990:	f9400001 	ldr	x1, [x0]
  400994:	f9400fa0 	ldr	x0, [x29, #24]
  400998:	f9400400 	ldr	x0, [x0, #8]
  40099c:	eb00003f 	cmp	x1, x0
  4009a0:	540003c0 	b.eq	400a18 <display+0x98>  // b.none
    return ;

  des = src->front;
  4009a4:	f9400fa0 	ldr	x0, [x29, #24]
  4009a8:	f9400000 	ldr	x0, [x0]
  4009ac:	f90017a0 	str	x0, [x29, #40]
  while (des != src->rear) {
  4009b0:	14000009 	b	4009d4 <display+0x54>
    printf(" %d ", des->data);
  4009b4:	f94017a0 	ldr	x0, [x29, #40]
  4009b8:	b9400001 	ldr	w1, [x0]
  4009bc:	90000000 	adrp	x0, 400000 <_init-0x4b8>
  4009c0:	912fe000 	add	x0, x0, #0xbf8
  4009c4:	97fffee7 	bl	400560 <printf@plt>
    des = des->next;
  4009c8:	f94017a0 	ldr	x0, [x29, #40]
  4009cc:	f9400400 	ldr	x0, [x0, #8]
  4009d0:	f90017a0 	str	x0, [x29, #40]
  while (des != src->rear) {
  4009d4:	f9400fa0 	ldr	x0, [x29, #24]
  4009d8:	f9400401 	ldr	x1, [x0, #8]
  4009dc:	f94017a0 	ldr	x0, [x29, #40]
  4009e0:	eb00003f 	cmp	x1, x0
  4009e4:	54fffe81 	b.ne	4009b4 <display+0x34>  // b.any
  }
  printf(" %d ", des->data);
  4009e8:	f94017a0 	ldr	x0, [x29, #40]
  4009ec:	b9400001 	ldr	w1, [x0]
  4009f0:	90000000 	adrp	x0, 400000 <_init-0x4b8>
  4009f4:	912fe000 	add	x0, x0, #0xbf8
  4009f8:	97fffeda 	bl	400560 <printf@plt>
  printf("\nqueue length = %d\n\n", length(src));
  4009fc:	f9400fa0 	ldr	x0, [x29, #24]
  400a00:	97ffffca 	bl	400928 <length>
  400a04:	2a0003e1 	mov	w1, w0
  400a08:	90000000 	adrp	x0, 400000 <_init-0x4b8>
  400a0c:	91300000 	add	x0, x0, #0xc00
  400a10:	97fffed4 	bl	400560 <printf@plt>
  400a14:	14000002 	b	400a1c <display+0x9c>
    return ;
  400a18:	d503201f 	nop
}
  400a1c:	a8c37bfd 	ldp	x29, x30, [sp], #48
  400a20:	d65f03c0 	ret

0000000000400a24 <main>:

int main()
{
  400a24:	a9bd7bfd 	stp	x29, x30, [sp, #-48]!
  400a28:	910003fd 	mov	x29, sp
  struct queue queue;
  int i;
  
  init(& queue);
  400a2c:	910063a0 	add	x0, x29, #0x18
  400a30:	97ffff24 	bl	4006c0 <init>
  for(i = 1; i <= 10; i++) 
  400a34:	52800020 	mov	w0, #0x1                   	// #1
  400a38:	b9002fa0 	str	w0, [x29, #44]
  400a3c:	14000007 	b	400a58 <main+0x34>
    enqueue(& queue, i);
  400a40:	910063a0 	add	x0, x29, #0x18
  400a44:	b9402fa1 	ldr	w1, [x29, #44]
  400a48:	97ffff29 	bl	4006ec <enqueue>
  for(i = 1; i <= 10; i++) 
  400a4c:	b9402fa0 	ldr	w0, [x29, #44]
  400a50:	11000400 	add	w0, w0, #0x1
  400a54:	b9002fa0 	str	w0, [x29, #44]
  400a58:	b9402fa0 	ldr	w0, [x29, #44]
  400a5c:	7100281f 	cmp	w0, #0xa
  400a60:	54ffff0d 	b.le	400a40 <main+0x1c>

  display(& queue);		// 1  2  3  4  5  6  7  8  9  10 
  400a64:	910063a0 	add	x0, x29, #0x18
  400a68:	97ffffc6 	bl	400980 <display>
  enqueue(& queue, 11);
  400a6c:	910063a0 	add	x0, x29, #0x18
  400a70:	52800161 	mov	w1, #0xb                   	// #11
  400a74:	97ffff1e 	bl	4006ec <enqueue>
  display(& queue);		// 1  2  3  4  5  6  7  8  9  10  11
  400a78:	910063a0 	add	x0, x29, #0x18
  400a7c:	97ffffc1 	bl	400980 <display>
  
  dequeue(& queue);		// del 1
  400a80:	910063a0 	add	x0, x29, #0x18
  400a84:	97ffff44 	bl	400794 <dequeue>
  dequeue(& queue);		// del 2
  400a88:	910063a0 	add	x0, x29, #0x18
  400a8c:	97ffff42 	bl	400794 <dequeue>
  dequeue(& queue);		// del 3
  400a90:	910063a0 	add	x0, x29, #0x18
  400a94:	97ffff40 	bl	400794 <dequeue>
  dequeue(& queue);		// del 4
  400a98:	910063a0 	add	x0, x29, #0x18
  400a9c:	97ffff3e 	bl	400794 <dequeue>
  dequeue(& queue);		// del 5
  400aa0:	910063a0 	add	x0, x29, #0x18
  400aa4:	97ffff3c 	bl	400794 <dequeue>
  display(& queue);		//  6  7  8  9  10  11
  400aa8:	910063a0 	add	x0, x29, #0x18
  400aac:	97ffffb5 	bl	400980 <display>

  enqueue(& queue, 55);
  400ab0:	910063a0 	add	x0, x29, #0x18
  400ab4:	528006e1 	mov	w1, #0x37                  	// #55
  400ab8:	97ffff0d 	bl	4006ec <enqueue>
  enqueue(& queue, 66);
  400abc:	910063a0 	add	x0, x29, #0x18
  400ac0:	52800841 	mov	w1, #0x42                  	// #66
  400ac4:	97ffff0a 	bl	4006ec <enqueue>
  enqueue(& queue, 75);
  400ac8:	910063a0 	add	x0, x29, #0x18
  400acc:	52800961 	mov	w1, #0x4b                  	// #75
  400ad0:	97ffff07 	bl	4006ec <enqueue>
  enqueue(& queue, 76);
  400ad4:	910063a0 	add	x0, x29, #0x18
  400ad8:	52800981 	mov	w1, #0x4c                  	// #76
  400adc:	97ffff04 	bl	4006ec <enqueue>
  enqueue(& queue, 85);
  400ae0:	910063a0 	add	x0, x29, #0x18
  400ae4:	52800aa1 	mov	w1, #0x55                  	// #85
  400ae8:	97ffff01 	bl	4006ec <enqueue>
  enqueue(& queue, 86);
  400aec:	910063a0 	add	x0, x29, #0x18
  400af0:	52800ac1 	mov	w1, #0x56                  	// #86
  400af4:	97fffefe 	bl	4006ec <enqueue>
  display(& queue);		// 6  7  8  9  10  11  55  66  75  76  85  86
  400af8:	910063a0 	add	x0, x29, #0x18
  400afc:	97ffffa1 	bl	400980 <display>
  /*
  while(queue.front != NULL) {
    printf(" %d ", get(&queue));
    dequeue(& queue);
    }*/
  clear(& queue);
  400b00:	910063a0 	add	x0, x29, #0x18
  400b04:	97ffff70 	bl	4008c4 <clear>
  400b08:	52800000 	mov	w0, #0x0                   	// #0
}
  400b0c:	a8c37bfd 	ldp	x29, x30, [sp], #48
  400b10:	d65f03c0 	ret
  400b14:	00000000 	.inst	0x00000000 ; undefined

0000000000400b18 <__libc_csu_init>:
  400b18:	a9bc7bfd 	stp	x29, x30, [sp, #-64]!
  400b1c:	910003fd 	mov	x29, sp
  400b20:	a9025bf5 	stp	x21, x22, [sp, #32]
  400b24:	90000095 	adrp	x21, 410000 <__FRAME_END__+0xf3e8>
  400b28:	a90153f3 	stp	x19, x20, [sp, #16]
  400b2c:	90000094 	adrp	x20, 410000 <__FRAME_END__+0xf3e8>
  400b30:	9137c2b5 	add	x21, x21, #0xdf0
  400b34:	9137e294 	add	x20, x20, #0xdf8
  400b38:	cb150294 	sub	x20, x20, x21
  400b3c:	a90363f7 	stp	x23, x24, [sp, #48]
  400b40:	aa0203f6 	mov	x22, x2
  400b44:	2a0003f8 	mov	w24, w0
  400b48:	aa0103f7 	mov	x23, x1
  400b4c:	97fffe5b 	bl	4004b8 <_init>
  400b50:	9343fe94 	asr	x20, x20, #3
  400b54:	b4000154 	cbz	x20, 400b7c <__libc_csu_init+0x64>
  400b58:	d2800013 	mov	x19, #0x0                   	// #0
  400b5c:	f8737aa3 	ldr	x3, [x21, x19, lsl #3]
  400b60:	aa1603e2 	mov	x2, x22
  400b64:	aa1703e1 	mov	x1, x23
  400b68:	2a1803e0 	mov	w0, w24
  400b6c:	91000673 	add	x19, x19, #0x1
  400b70:	d63f0060 	blr	x3
  400b74:	eb13029f 	cmp	x20, x19
  400b78:	54ffff21 	b.ne	400b5c <__libc_csu_init+0x44>  // b.any
  400b7c:	a94153f3 	ldp	x19, x20, [sp, #16]
  400b80:	a9425bf5 	ldp	x21, x22, [sp, #32]
  400b84:	a94363f7 	ldp	x23, x24, [sp, #48]
  400b88:	a8c47bfd 	ldp	x29, x30, [sp], #64
  400b8c:	d65f03c0 	ret

0000000000400b90 <__libc_csu_fini>:
  400b90:	d65f03c0 	ret

Disassembly of section .fini:

0000000000400b94 <_fini>:
  400b94:	a9bf7bfd 	stp	x29, x30, [sp, #-16]!
  400b98:	910003fd 	mov	x29, sp
  400b9c:	a8c17bfd 	ldp	x29, x30, [sp], #16
  400ba0:	d65f03c0 	ret
